Skip to content

Comments

Restrict input values#166

Merged
jan-janssen merged 8 commits intopythonworkflow:mainfrom
liamhuber:input-value-type
Feb 23, 2026
Merged

Restrict input values#166
jan-janssen merged 8 commits intopythonworkflow:mainfrom
liamhuber:input-value-type

Conversation

@liamhuber
Copy link
Contributor

To a subset of JSONifiable types, per discussion in #164.

To a subset of JSONifiable types

Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>
@liamhuber
Copy link
Contributor Author

@jan-janssen, the quantum espresso demo holds input lists of int and float. It looks to me like these should be replaced by kmesh(kx: int, ky:int, kz:int) and range(start: float, end: float, steps: int) (or similar) nodes.

@codecov
Copy link

codecov bot commented Feb 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jan-janssen
Copy link
Member

@liamhuber I am open to clarifying an implicit restriction that we practically already used but did not enforce so far. But I am a bit more reluctant to modify the examples after publication as I feel this would break backwards compatibility. This is would require a 2.0 release.

@liamhuber
Copy link
Contributor Author

Better to use #167 as the starting point if you're going to do this, the test suite is more complete

@jan-janssen
Copy link
Member

Better to use #167 as the starting point if you're going to do this, the test suite is more complete

I am happy to merge the additional tests in #167 as well.

@liamhuber
Copy link
Contributor Author

Better to use #167 as the starting point if you're going to do this, the test suite is more complete

I am happy to merge the additional tests in #167 as well.

I disapprove of this change, but if you're going to make it anyway then the extra tests are a positive.

@jan-janssen
Copy link
Member

@liamhuber I know that we disagree on the extend of the changes to the pydantic class - in particular in terms of allowing dictionaries as default - still I would like to merge this pull request as I see it as an improvement to the current version on the main branch, unless you strongly disagree.

@jan-janssen jan-janssen marked this pull request as ready for review February 23, 2026 18:29
Copy link
Member

@jan-janssen jan-janssen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@liamhuber
Copy link
Contributor Author

@liamhuber I know that we disagree on the extend of the changes to the pydantic class - in particular in terms of allowing dictionaries as default - still I would like to merge this pull request as I see it as an improvement to the current version on the main branch, unless you strongly disagree.

I agree that some constraint is an improvement on no constraints. However, I can't approve this PR in its current form. I'm not an org member here nor a repo maintainer, so merging it is your prerogative, but it's against my recommendation.

@jan-janssen jan-janssen merged commit 66ee2ac into pythonworkflow:main Feb 23, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants